package com.jas.main;
//@author A0098803W
import java.util.ArrayList;
import java.util.Calendar;

import com.jas.common.Language;
import com.jas.common.Notification;
import com.jas.common.Utilities;
import com.jas.logic.Logic;
import com.jas.logic.LogicAPI;
import com.jas.storage.StorageAPI;
import com.jas.storage.StorageException;
import com.jas.ui.JasDisplayHandler;
//@author A0098803W
/**
 * This class contains the main entry point and also checks for the input by the
 * user.
 * 
 * 
 * 
 */
public class JasDriver {
	//@author A0098803W
	/**
	 * This main entry point of the program.
	 * 
	 * @param args
	 *            User's input parameter.
	 * */
	public static void main(String[] args) {
		

		Language.loadLanguageFile();

		showWelcomeMessage();
		Utilities.checkMicrosoftTerminalSize();

		Logic logic = new Logic();
		LogicAPI logicAPI = new LogicAPI(logic);
		JasDisplayHandler tbh = new JasDisplayHandler(logicAPI);

		tbh.executeUserCommand();

	}

	//@author A0098803W
	/**
	 * This method prints the welcome message upon program execution.
	 * 
	 * @param args
	 *            User's input parameter.
	 * **/
	private static void showWelcomeMessage() {

		String msg = Language.getString("WELCOME_MESSAGE");

		System.out.println(msg);

	}

}
